package com.itheima.mm.service;

import com.itheima.mm.dto.QuestionDTO;
import com.itheima.mm.dto.QuestionGetByIdDTO;
import com.itheima.mm.entity.PageResult;
import com.itheima.mm.entity.QueryPageBean;
import com.itheima.mm.entity.QuestionPageQueryParams;
import com.itheima.mm.vo.QuestionMMVO;
import com.itheima.mm.vo.QuestionVO;

/**
 * @Description QuestionService
 * @Author xiao
 * @Date 2024-06-25
 */
public interface QuestionService {


    /**
     * 根据id和是否精选查询题目数据
     * @param questionGetByIdDTO
     * @return
     */
    QuestionVO getById(QuestionGetByIdDTO questionGetByIdDTO);



    //通过查询条件查询试题
    PageResult<QuestionMMVO> findListByPage(QueryPageBean<QuestionPageQueryParams> queryPageBean);



    //添加或者更新试题
    void addOrUpdate(QuestionDTO questionDTO);


    //删除试题
    void deleteById(Integer questionId);


        //分页查询精选题列表数据
    PageResult<QuestionMMVO> findClassicListByPage(QueryPageBean<QuestionPageQueryParams> queryPageBean);

    //加入精选试题
    void updateClassic(Integer questionId);
}
